﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Newtonsoft.Json;

namespace CMS.Web.Engine
{
    public class Json
    {
        public static string Serialize(object value)
        {
            return JsonConvert.SerializeObject(value);
        }
        public static T Deserialize<T>(string value)
        {
            return JsonConvert.DeserializeObject<T>(value);
        }
    }
}